package com.java.exception;

public enum ExceptionStateEnum {

    DUPLICATE_NAME(-2), DUPLICATE_PHONE(-3), DUPLICATE_IDENTIFICATION(-4), DUPLICATE_EMAIL(-5);

    private final int val;

    ExceptionStateEnum(int val) {
        this.val = val;
    }

    public int getVal() {
        return val;
    }
}
